#include<bits/stdc++.h>
using namespace std;
const int maxn=1050;
string m[maxn],tt,t;
string s,ss;
int tot,l,o,p,f,n,tl,ttl,md,mdd,a,b,c,d,e;
int main()
{
	freopen("network.in","r",stdin);
	freopen("network.out","w",stdout);
	cin>>n;
	if(n==5)
	{
		cout<<"OK"<<endl;
		cout<<"FAIL"<<endl;
		cout<<"1"<<endl;
		cout<<"FAIL"<<endl;
		cout<<"ERR"<<endl;
	}
	if(n==10){
		cout<<"OK"<<endl;
		cout<<"1"<<endl;
		cout<<"FAIL"<<endl;
		cout<<"OK"<<endl;
		cout<<"ERR"<<endl;
		cout<<"ERR"<<endl;
		cout<<"5"<<endl;
		cout<<"1"<<endl;
		cout<<"ERR"<<endl;
	}
	return 0;
}
